
/**
 * 字符串反转，如将字符串 "www.runoob.com" 反转为 "moc.boonur.www"。
*/
#if  1
#include <stdio.h>

//字符反转
void CharacterInversion(char * ch)
{
    char *p;
    p = ch;
    int count = 0;
    while (*p != '\0')
    {
        /* code */
        p++;
        count++;
    }
    for(int i = 0;i < count;i++)
    {
        printf("%c",*(p - i - 1));
    }
    
}
int main()
{
    char ch1[] = "www.runoob.com";
    CharacterInversion(ch1);
    return 0;
}
#endif